package com.pattern.factory.abstractfactory1;

/**
 * <p>
 *
 * </p>
 *
 * @author qingshan
 * @since 2020-07-19 17:20
 */
public class Main {

    public static void main(String[] args) {

        // 产品一族
        Car_1 car = new Car_1();
        car.go();
        AK47_1 ak47 = new AK47_1();
        ak47.shoot();
        Bread_1 bread = new Bread_1();
        bread.printName();

        // 另外产品一族
        Broom broom = new Broom();
        broom.go();
        MagicStick magicStick = new MagicStick();
        magicStick.shoot();
        MushRoom mushRoom = new MushRoom();
        mushRoom.printName();

        /*

        如果需要扩展其它产品族 就要添加新的族
        ？？？？ 如何更加灵活创建产品族呢  ?????????
        使用抽象工厂 内容 --->  abstractfactory2
         */

    }
}
